const express = require('express');
const router = express.Router();
const messageController = require('../Controller/messageController');
const { verifyToken } = require('../middleware/auth');

// 获取会话消息列表
router.get('/conversation/:conversationId', verifyToken, messageController.getMessagesByConversation);

// 发送消息
router.post('/send', verifyToken, messageController.sendMessage);

// 创建会话
router.post('/conversation/create', verifyToken, messageController.createConversation);

module.exports = router;